package com.jhx.mall.dao.impl;

import com.jhx.mall.dao.BaseDao;
import com.jhx.mall.dao.DtsKeywordDao;

public class DtsKeywordDaoImpl extends BaseDao implements DtsKeywordDao {
    @Override
    public int selectKeywordByKeyword(String keyword) {
        String sql = "select count(*) from dts_keyword where deleted = 0 and keyword = ?";
        rs = executeQuery(sql, keyword);
        try {
            if (rs.next()) {
                return rs.getInt(1);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return 0;
    }
}
